//
// Created by JYL on 2023-11-28.
//

#ifndef WHEELTEC_ENCODER_H
#define WHEELTEC_ENCODER_H

#include "main.h"

extern int Encoder_Left,Encoder_Right;     //左右编码器的脉冲计数
extern int Motor_Left,Motor_Right;         //电机PWM变量 应是Motor的 向Moto致敬

int Read_Encoder(u8 TIMX);
int PWM_Limit(int IN,int max,int min);
void Set_Pwm(int motor_left,int motor_right);

#endif //WHEELTEC_ENCODER_H
